import 'package:hi_net/hi_net.dart';
import 'package:net/http/request/favorites_list_request.dart';
import 'package:net/model/favorites_mo.dart';

class FavoriteListDao {
  static get({int pageIndex = 1, pageSize = 10}) async {
    FavoriteListRequest request = FavoriteListRequest();
    request.add('pageIndex', pageIndex).add('pageSize', pageSize);
    var result = await HiNet.getInstance().fire(request);
    // hyLog(result, StackTrace.current);
    return FavoriteMo.fromJson(result['data']);
  }
}
